import React, { Component } from 'react';
import "../index.css"
import Zfcref from './字符串形式的ref'
import Hdref from "./回调形式的ref"
import Ctrsy from './createRef使用'
class refsy extends Component {
  constructor(props) {
    super(props);
    this.state = {  }
  }
  render() { 
    return ( 
      <div>
         <ul className="myUl clearfix">
          <li>
            <div>字符串形式的ref(好像17版已弃用)</div>
            <Zfcref></Zfcref>
          </li>
          <li>
            <div>回调形式的ref</div>
            <Hdref></Hdref>
          </li>
          <li>
            <div>createRef使用</div>
            <Ctrsy></Ctrsy>
          </li>
        </ul>
      </div>
    );
  }
}
 
export default refsy;